package com.nf.xiaomi.service;

import com.nf.xiaomi.dao.EvaluateDao;
import com.nf.xiaomi.dao.impl.EvaluateDaoImpl;
import com.nf.xiaomi.entity.EvaluateEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public class EvaluateServiceImpl implements EvaluateService{
    EvaluateDao dao = new EvaluateDaoImpl();
    @Override
    public List<EvaluateEntity> getAll() {
        return dao.getAll();
    }

    @Override
    public int insert(Integer orderDetailsId,String evaluateContent, LocalDateTime evaluateDate, Integer nstate) {
        return dao.insert(orderDetailsId,evaluateContent, evaluateDate, nstate);
    }

    @Override
    public int update(String evaluateContent, LocalDateTime evaluateDate, Integer evaluateId) {
        return dao.update(evaluateContent, evaluateDate, evaluateId);
    }

    @Override
    public int delete(Integer evaluateId) {
        return dao.delete(evaluateId);
    }

    @Override
    public List<EvaluateEntity> getAll(Long account) {
        return null;
    }

    @Override
    public List<EvaluateEntity> getAll(Integer evaluateID) {
        return null;
    }
}
